<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec" %>
<%@include file="include-head.jsp"%>
<body>
<%@include file="include-nav.jsp"%>

<div class="container-fluid">
    <div class="row">
        <%@include file="include-sidebar.jsp"%>
        <div class="col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2 main">
            <ol class="breadcrumb">
                <li><a href="/admin/to/main/page.html">首页</a></li>
                <li><a href="/admin/query/for/search">数据列表</a></li>
                <li class="active">修改</li>
            </ol>
            <div class="panel panel-default">
                <div class="panel-heading">表单数据<div style="float:right;cursor:pointer;" data-toggle="modal" data-target="#myModal"><i class="glyphicon glyphicon-question-sign"></i></div></div>
                <div class="panel-body">
                    <form role="form" action="/admin/edit" method="post">
                        <input type="hidden" name="id" value="${requestScope['ADMIN'].id}"/>
                        <input type="hidden" name="pageNum" value="${param.pageNum}"/>
                        <div class="form-group">
                            <label for="loginacct">登陆账号</label>
                            <input
                                    value="${requestScope['ADMIN'].loginacct}"
                                    name="loginacct"
                                    type="text"
                                    class="form-control"
                                    id="loginacct"
                                    placeholder="请输入登陆账号">
                        </div>
                        <div class="form-group">
                            <label for="userpswd">登陆密码</label>
                            <input
                                    name="userpswd"
                                    type="password"
                                    class="form-control"
                                    id="userpswd"
                                    placeholder="请输入登陆密码">
                        </div>
                        <div class="form-group">
                            <label for="username">用户名称</label>
                            <input
                                    value="${requestScope['ADMIN'].username}"
                                    name="username"
                                   type="text"
                                   class="form-control"
                                   id="username"
                                   placeholder="请输入用户名称">
                        </div>
                        <div class="form-group">
                            <label for="email">邮箱地址</label>
                            <input
                                    value="${requestScope['ADMIN'].email}"
                                    name="email"
                                    type="email"
                                    class="form-control"
                                    id="email"
                                    placeholder="请输入邮箱地址">
                            <p class="help-block label label-warning">请输入合法的邮箱地址, 格式为： xxxx@xxxx.com</p>
                        </div>
                        <button type="submit" class="btn btn-success"><i class="glyphicon glyphicon-plus"></i> 修改</button>
                        <button type="reset" class="btn btn-danger"><i class="glyphicon glyphicon-refresh"></i> 重置</button>
                    </form>
                </div>
            </div>
        </div>
    </div>
</div>
</body>
</html>

